export default {
	namespaced: true,
	state: {
		name: "第二个VUEX"
	},
	mutations: {
		setNameState: (state, payload) => {
			state.name = payload
		}
	},
	actions: {
		setName({
			commit
		}, {
			payload
		}) {
			console.log("vuex action", payload)
			commit('setNameState', payload)
		},
	},
	init: (payload) => {
		console.log(`执行1初始化`, payload)
	}
}